package com.halflife.comeElectricity.member.rider;

import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface DiscountLogRepository {

    int deleteByPrimaryKey(Integer id);

    int insert(DiscountLog discountLog);

    int insertSelective(DiscountLog discountLog);

    DiscountLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DiscountLog discountLog);

    int updateByPrimaryKey(DiscountLog discountLog);

    List<DiscountLog> selectAll(Map<String, Object> param);

    int selectCount(Map<String, Object> param);

    List<DiscountLog> selectListByPage(Map<String, Object> param);

    @Select({"${sql}"})
    @ResultMap("BaseResultMap")
    List<DiscountLog> selectMany(@Param("sql") String sql);

    @Select({"${sql}"})
    @ResultMap("BaseResultMap")
    DiscountLog selectOne(@Param("sql") String sql);



}